'use strict';

const Service = require('egg').Service;

class GiftService extends Service {
  // 判断礼物是否存在
  async exist(id) {
    return await this.app.model.Gift.findOne({
        where:{
            id
        }
    })
  }
}

module.exports = GiftService;
